home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / srefv12i.zip / timefmt.doc < prev    next >
Text File  |  1996-10-25  |  1KB  |  76 lines

  1. This contains a brief description of the options that may
  2. be included in the timefmt NCSA HTTPD server side include
  3. directive.  They are based on the strftime C function.
  4.  
  5. Basic example:
  6.   <!-- #config timefmt="%A ,%c  (%r) ==%n is%j day of year,
  7.                        %w day in%W week of%Y  -->
  8. The above might return:
  9.     Saturday , 02:43:41 28 Sep 1996  (02:43:41:am) ==
  10.     272 day of year, 6 day in 39 week of 1996
  11.  
  12. Note that the %x substrings are replaced with time and date elements, as
  13. described below.
  14.  
  15.  
  16. %%   the % character
  17.  
  18. %a   Mon Tue ..  
  19.  
  20. %A   Monday Tuesday ..
  21.  
  22. %b   Jan Feb ..  
  23.  
  24. %B   January February  
  25.  
  26. %c   27 August 1988 10:15:55
  27.  
  28. %d   1 2 .. 31 day of month  
  29.  
  30. %D   05/27/89  
  31.  
  32. %e   1 2 .. 31 day of month, space padded 
  33.  
  34. %h   Jan Feb ..  
  35.  
  36. %H   00.. 23 hour 
  37.  
  38. %I   01 .. 12 hour 
  39.  
  40. %j   01..366 day of year  
  41.  
  42. %m   01 - 12 month  
  43.  
  44. %M   00...59 minute 
  45.  
  46. %n   <BR> (HTML new line)
  47.  
  48. %p   am or pm  (as appropriate)
  49.  
  50. %r   8:35pm  
  51.  
  52. %S   00-59 seconds  
  53.  
  54. %t   tab (best if  used in a <PRE> block)
  55.  
  56. %T   13:54:12  
  57.  
  58. %U   week # (00-53 -- 0 before first sunday of the year)
  59.  
  60. %W   week # (00-53 -- 0 before  first monday of the year)
  61.  
  62. %w   Day of week (0-6)
  63.  
  64. %x   27 August 1988  
  65.  
  66. %X   13:01:09  
  67.  
  68. %y   00-99 year  (2 digit)
  69.  
  70. %Y   1901 year  (4 digit)
  71.  
  72. %Z   Time zone, from the OS/2 TZ variable (e.g.; EST)
  73.  
  74.  
  75.  
  76.